/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BO;

import Bean.AccountBean;
import java.sql.SQLException;
import java.util.*;

/**
 *
 * @author Quang Thao
 */
public class AccountBO {
    
    Mapper.AccountMapper map;
    
    public AccountBO() throws SQLException
    {
        map = new Mapper.AccountMapper();
    }
    
    public boolean IsTrue(Bean.AccountBean acc) throws Exception
    {
        return map.IsTrue(acc);
    }
    
    public boolean IsExist(Bean.AccountBean acc) throws Exception
    {
        return map.IsExist(acc);
    }
    
    public Bean.AccountBean GetInfo(String id) throws Exception
    {
        return map.GetInfo(id);
    }
    
    public List GetAll() throws Exception       
    {
        return map.GetAll();
    }
    
    public List GetListByType(String type) throws Exception
    {
        return map.GetListByType(type);
    }
    
    public int Add(Bean.AccountBean acc) throws Exception
    {
        return map.Add(acc);
    }

    public int Delete(AccountBean acc) throws Exception {
        return map.Delete(acc);
    }
}
